package android.framework.binding;

public class BindableInt extends BaseBindable<Integer>{
	private int integer;
	
	public BindableInt(int integer){
		this.integer = integer;
	}
	
	public int getValue(){
		return integer;
	}
	
	public void setInteger(int integer){
		if(this.integer != integer){
			this.integer = integer;
			notifyListener(Integer.valueOf(integer));
		}
	}

	public void notifyChanges(Integer value) {
		integer = value.intValue();
	}

	public Integer getLastValue() {
		return integer;
	}
	
}
